/**
 * 
 */
package org.apache.lucene.search;

import java.io.IOException;
import java.util.HashSet;
import java.util.Set;

import org.apache.lucene.search.grouping.TermFirstPassGroupingCollector;

/**
 * @author Liuye
 * 
 */
public class B2BTermFirstPassGroupingCollector extends
		TermFirstPassGroupingCollector {
	private Set<String> groupValues;

	public B2BTermFirstPassGroupingCollector(String groupField,
			Sort groupSort, int topNGroups) throws IOException {
		super(groupField, groupSort, topNGroups);
		groupValues = new HashSet<String>();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.apache.lucene.search.grouping.AbstractFirstPassGroupingCollector#
	 * collect(int)
	 */
	@Override
	public void collect(int doc) throws IOException {
		super.collect(doc);
	}

	/**
	 * @return the groupValues
	 */
	public Set<String> getGroupValues() {
		return groupValues;
	}
}
